#!/bin/bash

N_ROW=4700
N_COL=1250
N_BYTES=2
FAST_MODE=0
FOUT_FNAME=tmp/tmp.bin

#判断是否存在tmp目录
if [ -e tmp ]; then
	echo "dir ./tmp exists"
else
	mkdir tmp
fi


DAISY_CONFIG=`cat .WKDIR`/daisy.ini

echo "*************************************************"
echo "> N_ROW       = ${N_ROW}"
echo "> N_COL       = ${N_COL}"
echo "> FATS_MODE   = ${FAST_MODE}"
echo "> FOUT_FNAME  = ${FOUT_FNAME}"

# exit;

# bin/restore_vod ${DAISY_CONFIG}

# sleep 10

bin/ccd290_readout -b ${N_BYTES} -r ${N_ROW} -c ${N_COL} -f ${FAST_MODE} -o ${FOUT_FNAME}

# bin/lower_vod ${DAISY_CONFIG}

echo "*************************************************"
